package com.example.demo.dao;

import com.example.demo.pojo.Product;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Classname IProductdao
 * @Description TODO
 * @Date 2020-10-29 15:02
 * @Author: StarSea99
 */
public interface IProductdao {

    @Select("select * from product ")
    List<Product> getAllProduct();

    @Select("select * from product where id=#{id}")
    Product getProductById(String id);


}
